<template>
    <div id="AddressEdit">
        <van-evaluate-dialog
            :show="show"
            :options="options"
            :rate-text="rateText"
            doctor-name="陈医生"
            doctor-title="副主任"
            allow-half
            @confirm="confirm"
            @close="close"
        />
    </div>
</template>

<script>
export default {
    data() {
        return {
            show: true,
            options: [
                { text: "亲切和蔼" },
                { text: "经验丰富" },
                { text: "回复及时" },
                { text: "医术精湛" },
                { text: "专业解答" },
                { text: "医德高尚" },
                { text: "耐心细致" },
                { text: "认真负责" },
            ],
            rateText: [
                "半颗星",
                "一颗星",
                "一颗半星",
                "两颗星",
                "两颗半星",
                "三颗星",
                "三颗半星",
                "四颗星",
                "四颗半星",
                "五颗星",
            ],
        };
    },

    methods: {
        confirm({ rate, rateText, options, comment }) {
            this.show = false;
            console.log(rate, rateText, options, comment);
        },
        close() {
            this.show = false;
        },
    },
};
</script>
